package com.pengshun.modules.api.petrol.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class JyPetrolStationOrderDto implements Serializable {

    @ApiModelProperty(value = "加油站订单id")
    private Long petrolStationOrderId;

    @ApiModelProperty(value = "加油站枪号id")
    private Long petrolStationGunId;

    @ApiModelProperty(value = "枪号名称")
    private String gunName;

    @ApiModelProperty(value = "加油站商品id")
    private Long petrolStationProductId;

    @ApiModelProperty(value = "号型名称")
    private String stationName;

    @ApiModelProperty(value = "交易单号")
    private String settNo;

    @ApiModelProperty(value = "加油站名称")
    private String name;

    @ApiModelProperty(value = "加油站地址")
    private String detailAddress;

    @ApiModelProperty(value = "加油站id")
    private Long petrolStationId;

    @ApiModelProperty(value = "购买用户id")
    private Long buyUserId;

    @ApiModelProperty(value = "油站价格")
    private BigDecimal stationPrice;

    @ApiModelProperty(value = "用户返点")
    private BigDecimal userRebates;

    @ApiModelProperty(value = "现价")
    private BigDecimal nowPrice;

    @ApiModelProperty(value = "加油数量")
    private BigDecimal stationNum;

    @ApiModelProperty(value = "加油金额")
    private BigDecimal stationAmount;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountsAmount;

    @ApiModelProperty(value = "实付金额")
    private BigDecimal realAmount;

    @ApiModelProperty(value = "交易时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date settTime;

    @ApiModelProperty(value = "支付方式(1油气卡支付2余额支付3微信支付4支付支付)")
    private Integer payWay;
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    @ApiModelProperty(value = "车牌号")
    private String carOwnerNum;
    @JsonIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @JsonIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    private static final long serialVersionUID = 1L;
}